package com.lyl.serviceorder;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableDiscoveryClient // 服务发现
@EnableFeignClients // 服务调用
@SpringBootApplication
//@EnableSwagger2 //swagger注解
@ComponentScan(basePackages = "com.lyl")// 放大组件扫描包
@EnableTransactionManagement
@MapperScan("com.lyl.serviceorder.mapper")
public class OrderServiceApplicaiton {
    public static void main(String[] args) {

        SpringApplication.run(OrderServiceApplicaiton.class,args);
    }
}
